package com.eyaomall.wxmall.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.eyaomall.wxmall.dao.GoodsImgDao;
import com.eyaomall.wxmall.model.vo.GoodsImgVO;
import com.eyaomall.wxmall.service.GoodsImgService;
/**
 * 商品图片
 * @author yuhuafeng
 * @date 2016-9-7
 */
@Service
public class GoodsImgServiceImpl implements GoodsImgService {
	@Autowired
	private GoodsImgDao goodsImgDao;
	/**
	 * 根据商品id查询商品图片信息
	 * @param id
	 * @return
	 */
	@SuppressWarnings("unchecked")
	public List<GoodsImgVO> queryImgByGoodsId(Integer id) {
		
		return goodsImgDao.list("queryImgByGoodsId", id);
	}

}
